package com.lcredu.spring;

import com.lcredu.annotation.LcrSpringApplicationContext;
import com.lcredu.annotation.LcrSpringConfig;
import com.lcredu.annotation.myonly.MyApplicationContext;
import com.lcredu.annotation.myonly.MyConfig;
import com.lcredu.minispring.LcrApplicationContext;

/**
 * @author 黎长容
 * @date 2025-07-14 15:21
 */
public class LcrMiniBean {
    public static void main(String[] args) {

//        LcrSpringApplicationContext ioc = new LcrSpringApplicationContext(LcrSpringConfig.class);
        //自写
        MyApplicationContext ioc = new MyApplicationContext(MyConfig.class);
        Object userController = ioc.getBean("lcrController");
        System.out.println(userController);
        
        System.out.println("ok...");
    }
}
